// import  {useState, useEffect} from 'react';
import { Button } from 'antd';
import style from './index.module.less';
import { useUserContext } from '@/hooks/userHooks';
// 这里出现了循环依赖
import { useGoTo } from '@/hooks';
import { ROUTE_KEY } from '@/routes/menus';


/**
*首页
*/
const Home = ()=>{
    const {store} = useUserContext()
    const {go} = useGoTo()
    // console.log('Home-store',store)
    return (<div className={style.container}>
        首页{store.tel as string}
        currentOrg:{store.currentOrg as string}
        <Button onClick={()=> {go(ROUTE_KEY.MY,{})}}>
            去个人中心
        </Button>
    </div>);
};

export default Home